<script type="text/javascript">
	cotCanHien[0] = 2;
</script>
<?php
	session_start();
	$nhatky = new nhatkybs();
	if($_SESSION["MaQuyen"]==2)
		$nhatky->MaNguoiDung = $_SESSION["MaND"];
	$danhsach = $nhatky->LayDanhSach();
?>
<table id="rounded-corner" class="display" summary="" border="1">
	<thead>
		<tr>
			<th align="center" colspan="13">
	               	<h2><strong>NHẬT KÝ HỆ THỐNG</strong></h2>
			</th>
		</tr>
		<tr>
			<th scope="col" class="rounded">STT</th>
			<th scope="col" class="rounded">Tên sự kiện</th>
			<th scope="col" class="rounded">Mã người dùng</th>
			<th scope="col" class="rounded">Thời gian</th>
		</tr>
	</thead>
	<tfoot>
        <tr>
           	<th>STT</th>
            <th>Tên sự kiện</th>
            <th>Mã người dùng</th>
            <th>Thời gian</th>       
       	</tr>
    </tfoot>
	<tbody>
		<?php
				$stt = 1;
				for($i = 0; $i < ($danhsach == false ? 0 : count($danhsach)); $i++)
				{
					echo "<tr>";
					echo "<td>" . $stt . "</td>";
					echo "<td>{$danhsach[$i]['TenSuKien']}</td>";
					echo "<td>{$danhsach[$i]['MaNguoiDung']}</td>";
					echo "<td>{$danhsach[$i]['ThoiGian']}</td>";
					echo "</tr>";
					$stt++;
				}	
			?>
	</tbody>
</table>